/*    */ package com.newcrm.webapi;
/*    */ 
/*    */ import com.newcrm.util.ParameterUtil;
/*    */ import com.newcrm.util.Util;
/*    */ import com.newcrm.webapi.sub.AddCustomerTagRelation;
/*    */ import com.newcrm.webapi.sub.DeleteCustomerTagRelation;
/*    */ import com.newcrm.webapi.sub.UpdateCustomerTagRelation;
/*    */ import java.io.IOException;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class CustomerTagRelation extends AbstractHttpServlet
/*    */ {
/*    */   private static final long serialVersionUID = -4920193342573676329L;
/*    */ 
/*    */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*    */     throws ServletException, IOException
/*    */   {
/* 28 */     if (!checkLogin(request)) {
/* 29 */       super.showLoginPage(request, response);
/* 30 */       return;
/*    */     }
/*    */ 
/* 33 */     String url = request.getRequestURI();
/* 34 */     String[] param = ParameterUtil.getParameters(url, getTagkey());
/*    */ 
/* 36 */     if ((param == null) || (param.length == 0))
/*    */     {
/* 38 */       String operation = Util.getURLParameter(request
/* 39 */         .getParameter("operation"));
/* 40 */       if ("new".equals(operation))
/*    */       {
/* 42 */         new AddCustomerTagRelation(this).parse(request, response);
/* 43 */         return;
/*    */       }
/*    */ 
/* 46 */       if ("update".equals(operation)) {
/* 47 */         new UpdateCustomerTagRelation(this).parse(request, response);
/* 48 */         return;
/*    */       }
/*    */     }
/* 51 */     super.doGet(request, response);
/*    */   }
/*    */ 
/*    */   protected AbstractAction getAddAction()
/*    */   {
/* 56 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getDeleteAction(String id)
/*    */   {
/* 61 */     return new DeleteCustomerTagRelation(this, id);
/*    */   }
/*    */ 
/*    */   protected AbstractAction getListAction()
/*    */   {
/* 66 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowAction(String id)
/*    */   {
/* 71 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowAddPageAction()
/*    */   {
/* 76 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowConfirmDestroyAction(String id)
/*    */   {
/* 81 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowUpdatePageAction(String id)
/*    */   {
/* 86 */     return null;
/*    */   }
/*    */ 
/*    */   protected String getTagkey()
/*    */   {
/* 91 */     return "/customerTag";
/*    */   }
/*    */ 
/*    */   protected AbstractAction getUpdateAction(String id)
/*    */   {
/* 96 */     return null;
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.CustomerTagRelation
 * JD-Core Version:    0.6.1
 */